<template>
    <div id="app">
        <img alt="Vue logo" src="./assets/logo.png">
        <button @click="json">axios发送数据</button>
        <HelloWorld msg="Welcome to Your Vue.js App" />
    </div>
</template>

<script>
    // eslint-disable-next-line no-unused-vars
    import axios from 'axios'
    import HelloWorld from './components/HelloWorld.vue'

    export default {
        name:'App',
        components:{
            HelloWorld
        },
        methods:{
            async json () {
                const res = await axios.post(' http://127.0.0.1:8000/pydemo/getjson/',{ ID:12345 })
                console.log(res)
            }
        }
    }
</script>

<style>
    #app {
        font-family: Avenir, Helvetica, Arial, sans-serif;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        text-align: center;
        color: #2c3e50;
        margin-top: 60px;
    }
</style>
